import request from './request';
import config from './config';
request.config.baseURL = config.baseURL;

const api = {
    login : (code) => request.get('/user/login',{
        code : code
    }),
    updateUserInfo : (encryptedData,iv) => request.get('/user/updateUserInfo',{
        encryptedData : encryptedData,
        iv : iv
    })
};

export default api;